package com.ruoyi.grape.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.grape.mapper.GrapePickMapper;
import com.ruoyi.grape.domain.GrapePick;
import com.ruoyi.grape.service.IGrapePickService;

/**
 * 采收信息Service业务层处理
 * 
 * @author ld
 * @date 2024-01-22
 */
@Service
public class GrapePickServiceImpl implements IGrapePickService 
{
    @Autowired
    private GrapePickMapper grapePickMapper;

    /**
     * 查询采收信息
     * 
     * @param pickId 采收信息主键
     * @return 采收信息
     */
    @Override
    public GrapePick selectGrapePickByPickId(Long pickId)
    {
        return grapePickMapper.selectGrapePickByPickId(pickId);
    }

    /**
     * 查询采收信息列表
     * 
     * @param grapePick 采收信息
     * @return 采收信息
     */
    @Override
    public List<GrapePick> selectGrapePickList(GrapePick grapePick)
    {
        return grapePickMapper.selectGrapePickList(grapePick);
    }

    /**
     * 新增采收信息
     * 
     * @param grapePick 采收信息
     * @return 结果
     */
    @Override
    public int insertGrapePick(GrapePick grapePick)
    {
        return grapePickMapper.insertGrapePick(grapePick);
    }

    /**
     * 修改采收信息
     * 
     * @param grapePick 采收信息
     * @return 结果
     */
    @Override
    public int updateGrapePick(GrapePick grapePick)
    {
        return grapePickMapper.updateGrapePick(grapePick);
    }

    /**
     * 批量删除采收信息
     * 
     * @param pickIds 需要删除的采收信息主键
     * @return 结果
     */
    @Override
    public int deleteGrapePickByPickIds(Long[] pickIds)
    {
        return grapePickMapper.deleteGrapePickByPickIds(pickIds);
    }

    /**
     * 删除采收信息信息
     * 
     * @param pickId 采收信息主键
     * @return 结果
     */
    @Override
    public int deleteGrapePickByPickId(Long pickId)
    {
        return grapePickMapper.deleteGrapePickByPickId(pickId);
    }
}
